let obj1={
    a:1,
    b:2
}
let obj2={
    b:3,
    c:4
}
let obj3={
    ...obj1,
    ...obj2
}
console.log(obj3);